package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.ECarInfo;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QCarInfo is a Querydsl query type for ECarInfo
 */
@Label("车辆GPS接受信息查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QCarInfo extends RelationalPathBase<ECarInfo> {

    private static final long serialVersionUID = -1768717863;

    public static final QCarInfo carInfo = new QCarInfo("car_info");

    public class PrimaryKeys {

        public final PrimaryKey<ECarInfo> primary = createPrimaryKey(id);

    }

    public final StringPath company = createString("company");

    public final StringPath describe = createString("describe");

    public final StringPath direction = createString("direction");

    public final StringPath id = createString("id");

    public final StringPath latitude = createString("latitude");

    public final StringPath locationTime = createString("locationTime");

    public final StringPath longitude = createString("longitude");

    public final StringPath mileage = createString("mileage");

    public final StringPath speed = createString("speed");

    public final StringPath status = createString("status");

    public final StringPath truckNo = createString("truckNo");

    public final PrimaryKeys pk = new PrimaryKeys();

    public QCarInfo(String variable) {
        super(ECarInfo.class, forVariable(variable), "null", "car_info");
        addMetadata();
    }

    public QCarInfo(String variable, String schema, String table) {
        super(ECarInfo.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QCarInfo(Path<? extends ECarInfo> path) {
        super(path.getType(), path.getMetadata(), "null", "car_info");
        addMetadata();
    }

    public QCarInfo(PathMetadata<?> metadata) {
        super(ECarInfo.class, metadata, "null", "car_info");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(company, ColumnMetadata.named("company").withIndex(3).ofType(Types.VARCHAR).withSize(45));
        addMetadata(describe, ColumnMetadata.named("describe").withIndex(10).ofType(Types.VARCHAR).withSize(45));
        addMetadata(direction, ColumnMetadata.named("direction").withIndex(8).ofType(Types.VARCHAR).withSize(45));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(latitude, ColumnMetadata.named("latitude").withIndex(6).ofType(Types.VARCHAR).withSize(45));
        addMetadata(locationTime, ColumnMetadata.named("locationTime").withIndex(4).ofType(Types.VARCHAR).withSize(45));
        addMetadata(longitude, ColumnMetadata.named("longitude").withIndex(5).ofType(Types.VARCHAR).withSize(45));
        addMetadata(mileage, ColumnMetadata.named("mileage").withIndex(9).ofType(Types.VARCHAR).withSize(45));
        addMetadata(speed, ColumnMetadata.named("speed").withIndex(7).ofType(Types.VARCHAR).withSize(45));
        addMetadata(status, ColumnMetadata.named("status").withIndex(11).ofType(Types.VARCHAR).withSize(45));
        addMetadata(truckNo, ColumnMetadata.named("truckNo").withIndex(2).ofType(Types.VARCHAR).withSize(45));
    }

}

